#!/bin/bash

ret="hello"

function test() {
    echo $1
    ret="world"
}

test "hello" 

echo ${ret}